{% extends "site.html" %}
{% block appstylesheet %}{% load media %}{% media_prefix %}css/house.css{% endblock %}
{% block appjs %}<script type="text/javascript" src="{% media_prefix %}js/house.js"></script>{% endblock %}
{% block globalconteiner %}
{% if messages %}
<ul class="messages">
    {% for message in messages %}
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
</ul>
{% endif %}
<div id="title">
  <h1><a href="{% url index %}">House</a></h1>
</div>
<div id="mainMenu">
  <ul>
    <li {% block mainmenuitem_1 %}class="mainMenuItem"{% endblock %}><a href="{% url index %}">Оплата консьержа</a></li>
    <li {% block mainmenuitem_2 %}class="mainMenuItem"{% endblock %}><a href="{% url operation %}">Журнал расходов</a></li>
  </ul>
  <div id="subMenu">
    <ul>
      {% block sub_menu %}
      <li><a href="">none</a></li>
      {% endblock %}
    </ul>
  </div>
</div>
<div id="stream"> 
  <table class="table_layout">
  <tr>
  <td width="70%" class="td_layout">
  {% block main %}
  {% endblock %}	
  </td>
  <td class="td_layout">
  <div id="summary_info">
    <H2>Сводная информация</H2>
    <table class="summaryInfo">
    <tr><td class="title" width="60%">{{processed_month_verbose}} {{processed_year}} г.</td><td width="40%"></td></tr>
    <tr><td></td><td></td></tr> 
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>Должники</span></td><td><font color="#bb0000">{{debt_apartments_count}} кв.</font></td></tr>
    <tr><td></td><td></td></tr> 
    <tr><td class="label"><span>Сумма долга</span></td><td><font color="#bb0000">{{debt_apartments}} р.</font></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td class="title">Собрано</td><td></td></tr>
    <tr><td width="40%"></td><td></td></tr>
    <tr><td class="label"><span>Жильцы</span></td><td>{{monthly_amount}} р.</td></tr>
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>Чоп</span></td><td>{{chop_amount}} р.</td></tr>
    <tr><td></td><td></td></tr>
    <tr><td class="title">Статистика</td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>Платят</span></td><td>{{ apartment_payment }} кв.</td></tr>  
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>Из них льготные</span></td><td>{{ apartment_payment_priv }} кв.</td></tr>  
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>Не платят</span></td><td>{{ apartment_none_payment }} кв.</td></tr>      
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>Итого</span></td><td>{{ apartment_payment_all }} кв.</td></tr>      
    <tr><td></td><td></td></tr>    
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>План:</span></td><td>{{plan_apartments}} р.</td></tr>    
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>ЧОП:</span></td><td>{{plan_chop}} р.</td></tr>   
    <tr><td></td><td></td></tr>
    <tr><td class="label"><span>Итого:</span></td><td>{{plan_arrival}} р.</td></tr> 
    <tr><td></td><td></td></tr>   
    <tr><td>Оплата</td><td></td></tr>
    <tr><td class="label"><span>услуг консъержа:</span></td><td>{{plan_concierge_fee}} р</td></tr>       
    </table>
    <h4>Баланс</h4>
    <h2>{{balance_full}} р.</h2>
    <h4>Действия</h4>
    <form name="form_name_action_1" method="post" action="{% url reg_chop %}" 
    onsubmit="return checkForm(this, 'Зарегистрировать от ЧОП ');" id="form_id_action_1">
    <p><label>Зарегистрировать от чоп:</label></p>
    <p><input name="cash" type="text" size="15"/> <input type="submit" value="Зачислить"/></p>
    </form>
    <form name="form_name_action_2" method="post" action="{% url reg_concierge_fee %}" 
    onsubmit="return checkForm(this, 'Оплата услуг консьержа ');" id="form_id_action_2">
    <p><label>Оплата услуг:</label></p>
    <p><input name="cash" type="text" size="15"/> <input type="submit" value="Зачислить"/></p>
    </form>
  </div>
  </td>
  </tr>
  </table>
</div>
{% endblock %}
{% block component_version %} {% endblock %}

	